#!/bin/sh


echo "Dckerfile安装 ssh"
#初始容器脚本
shelfile="/root/sh/ssh-bt-install.sh"



cat > Dockerfile << EOF
#导入镜像
FROM centos/aarch64


#复制脚本
COPY $shelfile /tmp/install-ssh.sh
#添加脚本权限
RUN chmod 777 /tmp/install-ssh.sh && /tmp/install-ssh.sh

LABEL u="root 1813033378"

#运行程序 supervisord -c /etc/supervisord.conf
 # 定参
ENTRYPOINT ["/usr/sbin/sshd", "-D"]
 # 变参

#CMD ["/etc/supervisord.conf"] 





EOF
sync
#构建镜像
docker build -f $(pwd)/Dockerfile -t hq/centos7-ssh $(pwd)/


